
package app;

import java.util.Random;

/**
 * @author seberm
 */
public abstract class Player {
	// Artibutes: //
	protected String name = "None";
	protected int actualCard = 0;
	protected int cardsSum = 0;
	protected int winners = 0;
	protected int test = 5;

	
	// Constructors: //
	public Player (String name) {
		this.name = name;
	}

	public Player () { }


	// Methods: //
	public int getActualCard () {
		return this.actualCard;
	}

	public String getName () {
		return this.name;
	}

	public void setName (String name) {
		this.name = name;
	}

	public int getCardsSum () {
		return this.cardsSum;
	}

	public void setNull () {
		this.cardsSum = 0;
		this.actualCard = 0;
	}

	public int getRandom () {
		int rNum = new Random().nextInt(10) + 2; // Range 2 -> 11
		this.actualCard = rNum;
		this.cardsSum += rNum;

		return rNum;
	}

	public abstract void start();
}
